import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '告警场景关联ID',
    dataIndex: 'alarmLinkId'
   },
   {
    title: '告警编号',
    dataIndex: 'alarmId'
   },
   {
    title: '关联类型(1场景2通知)',
    dataIndex: 'linkType'
   },
   {
    title: '场景/通知编号',
    dataIndex: 'linkId'
   },
   {
    title: '组织机构编号',
    dataIndex: 'sysOrgCode'
   },
   {
    title: '删除标识',
    dataIndex: 'delFlag'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '告警场景关联ID',
    field: 'alarmLinkId',
    component: 'InputNumber'
  },
 {
    label: '告警编号',
    field: 'alarmId',
    component: 'InputNumber'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '告警场景关联ID',
    field: 'alarmLinkId',
    component: 'InputNumber',
  },
  {
    label: '告警编号',
    field: 'alarmId',
    component: 'InputNumber',
  },
  {
    label: '关联类型(1场景2通知)',
    field: 'linkType',
    component: 'Input',
  },
  {
    label: '场景/通知编号',
    field: 'linkId',
    component: 'InputNumber',
  },
  {
    label: '组织机构编号',
    field: 'sysOrgCode',
    component: 'Input',
  },
  {
    label: '删除标识',
    field: 'delFlag',
    component: 'Input',
  },
];
